Remove skipping preprocessed files based on the filename#1486
Remove skipping preprocessed files based on the filename#1486daneshk merged 9 commits intoballerina-platform:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1486 +/- ##
============================================
+ Coverage 83.38% 83.48% +0.10%
+ Complexity 341 338 -3
============================================
Files 37 37
Lines 1631 1629 -2
Branches 239 238 -1
============================================
Hits 1360 1360
+ Misses 170 165 -5
- Partials 101 104 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes the logic that skips files with the same name so that the FTP listener will reprocess them, updates test setup to use separate “in”/“out” directories, and bumps the module version to 2.13.2.
- Initialize
inandoutfolders in the mock SFTP server - Drop the
processed.contains(path)check to allow reprocessing same-named files - Update tests and configuration to use
/inand/outpaths and bump version
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test-utils/src/main/java/.../MockFtpServer.java | Create in/out directories on startup |
| native/src/main/java/.../RemoteFileSystemConsumer.java | Remove processed-path skip logic |
| changelog.md | Add unreleased entry for same-name fix |
| ballerina/tests/secure_listener_endpoint_with_caller_test.bal | Adjust tests to new /in/out directory flow |
| ballerina/Dependencies.toml | Bump package version to 2.13.2 |
| ballerina/CompilerPlugin.toml | Update compiler plugin path to 2.13.2-SNAPSHOT |
| ballerina/Ballerina.toml | Align module version and native jar snapshot |
Comments suppressed due to low confidence (2)
changelog.md:6
- [nitpick] Align the "unreleased" header with Keep a Changelog conventions, for example use "## [Unreleased]".
## unreleased
native/src/main/java/io/ballerina/stdlib/ftp/transport/server/RemoteFileSystemConsumer.java:225
- Since the skip logic is removed, consider deleting the
processedcollection and any related unused fields or imports to clean up dead code.
String path = file.getName().getURI();
test-utils/src/main/java/io/ballerina/stdlib/ftp/testutils/mockServerUtils/MockFtpServer.java
Show resolved
Hide resolved
Co-authored-by: Nuvindu Nirmana <63797478+Nuvindu@users.noreply.github.com>
|



Purpose
Fixes: ballerina-platform/ballerina-library#8035
Addresses the issue of FTP listener not processing files with the same name.
Examples
Checklist